package com.eddie.facade;

/**
 * @author Eddie
 * @date 2022/08/02 09:18
 **/
public class Projector {


    //单例模式,饿汉式
    private Projector() {

    }

    private static final Projector instance = new Projector();

    public static Projector getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("Projector打开了");
    }

    public void off() {
        System.out.println("Projector关闭了");
    }

    public void focus() {
        System.out.println("Projector正在聚焦");
    }

}
